package jungsun;

import java.util.Scanner;

public class J09Retangle {
	//변수선언
	// 변수계산
	//결과 출력
	//메서드이용하여 작성
	public static void main(String[]args){
		// 1.변수선언및초기화
		double width[] = new double[2];
		double height[] = new double[2];
		String color []= new String[2];
		double area []= new double[2];
		double perimeter[] = new double[2];
		
	// 면적,들레 계산
		inputRetangle(width,height,color);
		getArea(area,width,height);
		getPerimeter(perimeter,width,height);
		
	//결과출력
		System.out.println(height[1]);
		System.out.println(width[1]);
		System.out.println(area[1]);
		System.out.println(color[1]);
		System.out.println(perimeter[1]);
		
		
	}
		
	private static void getArea(double[] area, double[] width, double[] height) {
		// TODO Auto-generated method stub
		
	}

	private static void getPerimeter(double[] perimeter, double[] width,
			double[] height) {
		// TODO Auto-generated method stub
		
	}

	//사가형 가로,세로,색상입력	
	public static void inputRetangle(double[] width,double[] height,String color[]){
		Scanner sc = new Scanner(System.in);
		System.out.println("가로는?");
		width[1] = sc.nextInt();
		System.out.println("세로?");
		height[1]= sc.nextInt();
		System.out.println("색상?");
		color [1]= sc.next();
	}
		
		
		// 계산및 연산(메서드,사각형 면적계산)
		public static void getArea(
				double area,double width,double height){
			        area=width * height;
		}	
						
					
			
		// 사각형 둘레계산
		public static void getPermeter(
				double perimeter,double width,double height){
			
			  perimeter =(width*height)*2;
			
		}
		
		
	}

	
